package com.wangxiang.sys.manage.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * 
 * @author wangxiang
 * @email 2293672863@qq.com
 * @date 2022-03-05 16:29:54
 */
@Data
@TableName("sys_menu")
public class MenuEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 菜单id
	 */
	@TableId
	private int id;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 层级
	 */
	private int level;
	/**
	 * 父级id
	 */
	private int parentId;
	/**
	 * 路由
	 */
	private String path;
	/**
	 * 图标
	 */
	private String icon;

	/**
	 * 自己菜单
	 */
	@TableField(exist = false)
	private List<MenuEntity> children;

}
